package com.un.ebs.contract.domain;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import com.un.ebs.core.metadata.DbField;
import org.springframework.stereotype.Component;

/**
 * (ContractFile)表实体类
 *
 * @author liubo
 * @since 2020-07-05 18:10:22
 */
@Data
@TableName("tb_contract_file")
@Component
@SuppressWarnings("serial")
public class ContractFile extends Model<ContractFile> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "contract_id", length = 40, precision = 0)
    private String contractId;

    @DbField(name = "file_name", length = 100, precision = 0)
    private String fileName;

    @DbField(name = "file_url", length = 100, precision = 0)
    private String fileUrl;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}